package com.fauks.ssm.spring.bean;

import org.springframework.beans.factory.annotation.Value;

import java.util.List;
import java.util.Map;

public class OtherBean {
    private Integer id;
    private String name;

    @Value("jdbc hehehe")
    public String address;
    @Value("${jdbc.driverClass}")
    public String driverName;

    private List<SpringBean> springBeans;

    private Map<String, String> map;

    public OtherBean() {
    }

    public OtherBean(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<SpringBean> getSpringBeans() {
        return springBeans;
    }

    public void setSpringBeans(List<SpringBean> springBeans) {
        this.springBeans = springBeans;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    @Override
    public String toString() {
        return "OtherBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
